<?php 
	function theme_init(){
		load_theme_textdomain('paranimage', get_template_directory() . '/languages');
	}
	add_action ('init', 'theme_init');
	if ( function_exists('register_sidebars') )
	register_sidebars(2, array(
		'name'=>'Sidebar %d',
        'before_widget' => '<div class="widget">',
        'after_widget' => '</div>',
        'before_title' => '<h3 class="widgettitle">',
        'after_title' => '</h3>',
    ));
	function custom_comment($comment, $args, $depth) {
       $GLOBALS['comment'] = $comment; ?>
		<li <?php comment_class(); ?> id="comment-<?php comment_ID( ); ?>">
		<?php comment_author_link() ?>
		<?php if ($comment->comment_approved == '0') : //message if comment is held for moderation ?>
		<em><?php _e('Your comment is awaiting moderation', 'paranimage'); ?>.</em>
		<?php endif; ?>
		<small>&nbsp;&nbsp;&nbsp;<?php comment_date('Y-m-d') ?> <?php _e('at', 'paranimage'); ?> <?php comment_date('G:i') ?> &nbsp;&nbsp;&nbsp;<?php echo comment_reply_link(array('reply_text' => __('Reply', 'paranimage'), 'depth' => $depth, 'max_depth' => $args['max_depth']));  ?> <?php edit_comment_link( __('Edit', 'paranimage'),' &nbsp;|&nbsp; ',''); ?></small>
		<?php comment_text() ?>
	<?php }
	function custom_pings($comment, $args, $depth) {
       $GLOBALS['comment'] = $comment; ?>
		<li <?php comment_class(); ?> id="comment-<?php comment_ID( ); ?>"><?php comment_author_link() ?> - <small><?php comment_date('l, j F, Y') ?><?php edit_comment_link( __('Edit', 'paranimage'),'<br /> &nbsp;-&nbsp; ',''); ?></small>
	<?php } 
add_filter('get_comments_number', 'comment_count', 0);
function comment_count( $count ) {
	global $id;
	$comments_by_type = &separate_comments(get_comments('post_id=' . $id));
	return count($comments_by_type['comment']);
}
?>